package multimanipulators.converters.newfile;

import java.io.OutputStreamWriter;
import java.util.logging.Level;
import java.util.logging.Logger;

import be.djdb.Tabblock;

import multimanipulators.interfaces.Converters;

public class Converter_logit implements Converters {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5594328445987038369L;
	private Level level;
	private static String prefix;
	public Converter_logit(Level level,String logprefix) {
		this.level = level;
		this.prefix= logprefix;
	}

	public void manipulate(char[] buffer, OutputStreamWriter doutstream)throws Exception {
		log(level,this.prefix +new String(buffer));
	}
	@Override
	public int compareTo(Object o) {
		return 0;
	}
    private static  void log(Level level,String msg ){
        Logger.getLogger(Converter_logit.class.getName()).log(level, msg);
    }

	@Override
	public String getname() {
		return null;
	}
}
